package cn.huiyunche.base.service.enums;

/**
 * 导入订单状态枚举
 *
 * @author
 */
public enum OrderImporteStatusEnum {
    NOTPUBLISH(10, "未发布"),
    PUBLISHED(20, "已发布");

    private final int value;
    private final String text;

    OrderImporteStatusEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static OrderImporteStatusEnum getByValue(int value) {
        for (OrderImporteStatusEnum temp : OrderImporteStatusEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
